/**
 * @Project HGEMS
 * @Author Tran Manh Hung
 * @Email: hungtmit@gmail.com | tmh@xwebgate.com
 * @Copyright © 2010 TMH. All rights reserved
 * @Createdate Oct 30, 2010
 * @Createtime 11:02:18 AM
 */

package events
{
	import flash.events.Event;

	import valueObjects.HG_PrdCat;

	public class HGPrdCatEvent extends Event
	{
		public static const CREATE_PRD_CAT:String = "createPrdCat";

		public static const ADD_PRD_CAT:String = "addPrdCat";

		public static const EDIT_PRD_CAT:String = "editPrdCat";

		public static const UPDATE_PRD_CAT:String = "updatePrdCat";

		public static const REMOVE_PRD_CAT:String = "removePrdCat";

		public static const DELETE_PRD_CAT:String = "delPrdCat";

		private var _prdCat:HG_PrdCat;

		public function HGPrdCatEvent(type:String, prdCat:HG_PrdCat = null, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(type, bubbles, cancelable);

			this.prdCat = prdCat;
		}

		override public function clone():Event
		{
			return new HGPrdCatEvent(type, prdCat, bubbles, cancelable);
		}

		public function get prdCat():HG_PrdCat
		{
			return _prdCat;
		}

		public function set prdCat(value:HG_PrdCat):void
		{
			_prdCat = value;
		}
	}
}